package com.dys.designpattern.factorymethod.applyaward.vo;

/**
 * @Author: 疾风
 * @ClassName: ResponseResult
 * @Description: 统一响应结果封装
 * @CreateDate: 2024/05/13
 * @Version: v1.0.0
 */
public class ResponseResult {

    private String code;
    private String message;
    private Object data;

    public ResponseResult() {
    }

    public ResponseResult(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public ResponseResult(String code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResponseResult{" +
                "code='" + code + '\'' +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
